package com.lightChat.entity;


/**
 * 返回给前端的对象
 */
public class ResultData {

    private String status;  //标志，给前端一个反馈     200成功，500失败
    private String msg;     //对于status的描述
    private Object data;    //返回给前端的数据

    public ResultData(String status, String msg, Object data) {
        this.status = status;
        this.msg = msg;
        this.data = data;
    }

    public ResultData(String status, String msg) {
        this.status = status;
        this.msg = msg;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
